#!/usr/bin/env python 
# -*- coding: utf-8 -*- 
# @Time : 2020/2/20 22:55 
# @Author : WangYu 
# @Site :  
# @File : Member.py 
# @Software: PyCharm

#api 接口文件样式

from web.controllers.api import route_api
from flask import request, jsonify
from application import app, db


@route_api.route("/member/login", methods=["GET","POST"])
def login():
    resp = {"code": 200, "msg": "操作成功", "data": {}}
    req = request.values
    app.logger.info(req)
    return jsonify(resp)